import createAutoImport from './auto-import.js'
import createSetupExtend from './setup-extend.js'
import { autoComponents } from './vue-compoents.js'
import createCompression from './compression.js'
import uniPlugin from './vite-plugin-uni.js'

export default function createVitePlugins(viteEnv, isBuild = false) {
    const vitePlugins = []
    vitePlugins.push(createAutoImport())
    vitePlugins.push(createSetupExtend())
    vitePlugins.push(autoComponents())
	vitePlugins.push(uniPlugin())
	// isBuild && vitePlugins.push(...createCompression(viteEnv))
    return vitePlugins
}
